﻿Imports iConverter.Contracts
Imports System.Drawing
Imports System.Configuration


''' <summary>
''' 发送到插件基类
''' </summary>
''' <typeparam name="TSettings">用于保存插件设置的强类型</typeparam>
''' <remarks></remarks>
Public MustInherit Class Send(Of TSettings As ApplicationSettingsBase)
    Inherits Plugin(Of TSettings)
    Implements ISend, ISendMetadata




    ''' <summary>
    ''' 创建新的实例
    ''' </summary>
    ''' <param name="id">ID</param>
    ''' <param name="name">名称</param>
    ''' <param name="description">描述</param>
    ''' <param name="lIcon">大图标（32 X 32）</param>
    ''' <param name="sIcon">小图标（16 x 16）</param>
    ''' <remarks></remarks>
    Sub New(ByVal id As Guid,
            ByVal name As String,
            ByVal description As String,
            ByVal lIcon As Bitmap,
            ByVal sIcon As Bitmap)
        MyBase.New(PluginTypes.Send,
                   id, name, description, lIcon, sIcon)

    End Sub


#Region "ISend 实现"

    ''' <summary>
    ''' 用于将转换文档发送到其他位置的方法
    ''' </summary>
    ''' <param name="doc">要发送的转换文档</param>
    ''' <remarks></remarks>
    Public Sub Sending(ByVal doc As Contracts.IConvertDocument) Implements Contracts.ISend.Sending
        OnSending(doc)
    End Sub

    ''' <summary>
    ''' 发送到方法的实现
    ''' </summary>
    ''' <param name="doc">要发送的转换文档</param>
    ''' <remarks></remarks>
    Protected MustOverride Sub OnSending(ByVal doc As IConvertDocument)

#End Region




End Class
